<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title></title>
		<script type="text/javascript">
			var obj = {
				//属性
				'color':'yellow',
				'size':'4.7',
				'price':'8000',
				//方法
				'call':function(){
					alert('我可以打电话');
				},
				'read':function(){
					alert('我可以阅读');
				},
				'play':function(){
					alert('我可以玩游戏');
				}
			}
			
			obj.year = 2015;
			
//			对象的遍历
			for(var i in obj){
//				document.write(i);
				document.write(i+'=>'+obj[i]+'<br>');
			}
		</script>
	</head>
	<body>

	</body>
</html>
